/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Administrator
 */
@Entity
@Table(name = "PARAGGELIA")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Paraggelia.findAll", query = "SELECT p FROM Paraggelia p"),
    @NamedQuery(name = "Paraggelia.findByNumorder", query = "SELECT p FROM Paraggelia p WHERE p.numorder = :numorder"),
    @NamedQuery(name = "Paraggelia.findByPosotita", query = "SELECT p FROM Paraggelia p WHERE p.posotita = :posotita"),
    @NamedQuery(name = "Paraggelia.findByPrice", query = "SELECT p FROM Paraggelia p WHERE p.price = :price"),
    @NamedQuery(name = "Paraggelia.findBySiskeyasia", query = "SELECT p FROM Paraggelia p WHERE p.siskeyasia = :siskeyasia"),
    @NamedQuery(name = "Paraggelia.findByTopthesia", query = "SELECT p FROM Paraggelia p WHERE p.topthesia = :topthesia"),
    @NamedQuery(name = "Paraggelia.findByEidos", query = "SELECT p FROM Paraggelia p WHERE p.eidos = :eidos")})
public class Paraggelia implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "NUMORDER")
    private Integer numorder;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "POSOTITA")
    private Double posotita;
    @Column(name = "PRICE")
    private Double price;
    @Column(name = "SISKEYASIA")
    private String siskeyasia;
    @Column(name = "TOPTHESIA")
    private String topthesia;
    @Column(name = "EIDOS")
    private String eidos;
    @JoinColumn(name = "PELATISID", referencedColumnName = "CODE")
    @ManyToOne(optional = false)
    private Pelatis pelatisid;

    public Paraggelia() {
    }

    public Paraggelia(Integer numorder) {
        this.numorder = numorder;
    }

    public Integer getNumorder() {
        return numorder;
    }

    public void setNumorder(Integer numorder) {
        this.numorder = numorder;
    }

    public Double getPosotita() {
        return posotita;
    }

    public void setPosotita(Double posotita) {
        this.posotita = posotita;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getSiskeyasia() {
        return siskeyasia;
    }

    public void setSiskeyasia(String siskeyasia) {
        this.siskeyasia = siskeyasia;
    }

    public String getTopthesia() {
        return topthesia;
    }

    public void setTopthesia(String topthesia) {
        this.topthesia = topthesia;
    }

    public String getEidos() {
        return eidos;
    }

    public void setEidos(String eidos) {
        this.eidos = eidos;
    }

    public Pelatis getPelatisid() {
        return pelatisid;
    }

    public void setPelatisid(Pelatis pelatisid) {
        this.pelatisid = pelatisid;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (numorder != null ? numorder.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Paraggelia)) {
            return false;
        }
        Paraggelia other = (Paraggelia) object;
        if ((this.numorder == null && other.numorder != null) || (this.numorder != null && !this.numorder.equals(other.numorder))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "model.Paraggelia[ numorder=" + numorder + " ]";
    }
    
}
